{% extends "base/base_list.html" %}


{% block main %}


{%load class_menu_tags%}

{%load theme_filter_tags%}

<div class="panel panel-default">
  <!-- Default panel contents -->




<div class="panel-heading">
    <!--<ol class="breadcrumb">-->
<!--<li>-->
<!--<a href="/BbsTheme/bbsTheme_list-1/">手机交流区</a>-->
<!--</li>-->
<!--<li>-->
<!--<a href="/BbsTheme/bbsTheme_list-2/">android</a>-->
<!--</li>-->
<!--</ol>-->
<ul class="nav nav-tabs">{{instance|getClassTopMenuHtml}}</ul>
<!--<ul class="nav nav-tabs">-->
  <!--<li><a href="#">Home</a></li>-->
  <!--<li><a href="#">Profile</a></li>-->
  <!--<li  class="active"><a href="#">Messages</a></li>-->
<!--</ul>-->
    <ul class="nav nav-pills">

        <li class="dropdown">
          <a id="drop1" role="button" data-toggle="dropdown" href="#">版主<b class="caret"></b></a>
          <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop1">
             {%for admin in adminUsers%}
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="#"><h4>{{admin.first_name}}</h4></a></li>
                  <li class="divider"></li>


              {%ifequal admin request.user%}
              <li role="presentation"><a role="menuitem" tabindex="-1" href="{%url themeType_list instance.id%}"><h4>设置</h4></a></li>
              {%endifequal%}

              {%endfor%}

              {%if Perm.isSiteManager%}
              <li role="presentation"><a role="menuitem" tabindex="-1" href="{%url themeType_list instance.id%}"><h4>设置</h4></a></li>
              {%endif%}
          </ul>
        </li>

    {%if instance.isAllowAddTheme%}

        {%theme_filter_rank request%}

        <li class="dropdown">
          <a id="drop6" role="button" data-toggle="dropdown" href="#">发布<b class="caret"></b></a>
          <ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop6">
            <li role="presentation"><a role="menuitem" tabindex="-1" href="{{instance.typeId.urlAdd}}/?classId={{instance.id}}&vote=False"><h4>主题</h4></a></li>
            <li role="presentation"><a role="menuitem" tabindex="-1" href="{%url bbsTheme_add 0%}?classId={{instance.id}}&vote=True"><h4>投票</h4></a></li>
          </ul>
        </li>
    {%else%}
        <li><a>禁止发布主题</a></li>
    {%endif%}

</ul>
</div>







  <!--<div class="panel-body">-->
      <!--fff-->
  <!--</div>-->
    {%class_theme_childclass classChild%}

      {%theme_list_class request instance.id%}


</div>




{% endblock %}